package com.sykj.cloud.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sykj.cloud.common.core.annotation.Excel;
import com.sykj.cloud.common.core.web.domain.BaseEntity;

/**
 * 系统参数 对象 sys_parameter
 *
 * @author mr.will
 * @date 2021-03-26
 */
public class SysParameter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参数ID */
    private String guid;

    /** 名称 */
    @Excel(name = "名称")

    private String name;

    /** 描述 */
    @Excel(name = "描述")

    private String description;

    /** 编码 */
    @Excel(name = "编码")

    private String code;

    /** 数值 */
    @Excel(name = "数值")

    private String value;

    /** 机构定义 */
    @Excel(name = "机构定义")

    private Integer forOrganization;

    /** 应用定义 */
    @Excel(name = "应用定义")

    private Integer forApplication;

    /** 站点定义 */
    @Excel(name = "站点定义")

    private Integer forSite;

    /** 用户定义 */
    @Excel(name = "用户定义")

    private Integer forUser;

    /** 会员定义 */
    @Excel(name = "会员定义")

    private Integer forMember;

    /** 是否有效 */
    @Excel(name = "是否有效")

    private Integer valid;

    /** 是否锁定 */
    @Excel(name = "是否锁定")

    private Integer lock;

    /** 是否删除 */
    @Excel(name = "是否删除")

    private Integer deleted;

    /** 删除人 */
    @Excel(name = "删除人")

    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setValue(String value)
    {
        this.value = value;
    }

    public String getValue()
    {
        return value;
    }
    public void setForOrganization(Integer forOrganization)
    {
        this.forOrganization = forOrganization;
    }

    public Integer getForOrganization()
    {
        return forOrganization;
    }
    public void setForApplication(Integer forApplication)
    {
        this.forApplication = forApplication;
    }

    public Integer getForApplication()
    {
        return forApplication;
    }
    public void setForSite(Integer forSite)
    {
        this.forSite = forSite;
    }

    public Integer getForSite()
    {
        return forSite;
    }
    public void setForUser(Integer forUser)
    {
        this.forUser = forUser;
    }

    public Integer getForUser()
    {
        return forUser;
    }
    public void setForMember(Integer forMember)
    {
        this.forMember = forMember;
    }

    public Integer getForMember()
    {
        return forMember;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }
    public void setLock(Integer lock)
    {
        this.lock = lock;
    }

    public Integer getLock()
    {
        return lock;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }
    public void setDeleteBy(String deleteBy)
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy()
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("name", getName())
            .append("description", getDescription())
            .append("code", getCode())
            .append("value", getValue())
            .append("forOrganization", getForOrganization())
            .append("forApplication", getForApplication())
            .append("forSite", getForSite())
            .append("forUser", getForUser())
            .append("forMember", getForMember())
            .append("valid", getValid())
            .append("lock", getLock())
            .append("deleted", getDeleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
